#include "task.h"

task::task(QObject *parent) : QObject(parent)
{

}

void task::stopWork()
{
    this->canDo=0;
}

void task::work()
{
    while(this->canDo)
    {
        emit this->upUi();
        sleep(1);
    }
}
